exponential equations with two different bases